home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Go Sit In The Corner 1.0 / source / cdev code / cdev error.c next >
Encoding:
C/C++ Source or Header  |  1994-10-30  |  1.3 KB  |  42 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        cdev error.c
  4.  
  5. Purpose:    This module handles putting up an error box if something
  6.             goes terribly wrong.
  7.             
  8.  
  9. Go Sit In The Corner -=- not you, just the cursor
  10. Copyright ©1994, Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. #include "cdev error.h"
  30. #include "cdev globals.h"
  31. #include "msg dialogs.h"
  32.  
  33. void HandleError(int resultCode)
  34. {
  35.     Str255            theStr;
  36.     
  37.     GetIndString(theStr, 128, resultCode);
  38.     ParamText(theStr, "\p", "\p", "\p");
  39.     PositionDialog('ALRT', 128);
  40.     StopAlert(128, 0L);
  41. }
  42.